const requester = require('../common/requester.js');

const follow = function (id) {
    return requester.request({
        url: requester.service.followUser,
        data: {followedUserId: id}
    })
};

const unfollow = function (id) {
    return requester.request({
        url: requester.service.unFollowUser,
        data: {followedUserId: id}
    })
};
module.exports = {
    unfollow, follow
};